c# get last two characters of string

61

c# get last two characters of string -

var result = str.Substring(str.Length - 2);

c# get last character of string -

mystring.Substring(mystring.Length - 4);

Comments

Submit
0 Comments